package com.ly.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.entity.User;
import com.ly.pojo.dto.LoginDTO;
import com.ly.pojo.dto.RegisterDTO;
import com.ly.pojo.dto.UserDTO;
import com.ly.pojo.dto.updPwdDTO;
import com.ly.pojo.vo.UserVO;
import com.ly.utils.Result;

/**
 * @author : 黑渊白花
 * @ClassName UserService
 * @date : 2025/2/8 16:38
 * @Description
 */

public interface UserService extends IService<User> {
    UserVO login(LoginDTO adminDTO);
    void saveAndStudent(User user);
    IPage<User> getPage(UserDTO userDTO);

    // Boolean delete(Integer id);
    void update(User user);
    User getByName(String name);
    Boolean updPwd(updPwdDTO pwd);

    Result register(RegisterDTO registerDTO);
    Result editInfo(RegisterDTO registerDTO);
}
